-- GENERATED SPELL FOR [Captain Shely] --


function spell0_27232(pUnit, Event) --@Run Through,n/a--
pUnit:FullCastSpellOnTarget(50853,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27232', 15000, 1)
end

function Sorts_27232(pUnit, Event)
local choix_sorts_27232 = math.random(0, 0)
if choix_sorts_27232 == 0 then
pUnit:RegisterEvent('spell0_27232', 1, 1)
end
end

function mob27232_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27232', math.random(1500, 3000), 1)
end

function mob27232_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27232_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27232_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27232, 1, 'mob27232_Action')
RegisterUnitEvent(27232, 2, 'mob27232_Leave')
RegisterUnitEvent(27232, 3, 'mob27232_Kill')
RegisterUnitEvent(27232, 4, 'mob27232_Die')
